﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using NHADAT.Authentication;
using NHADAT.Common;

namespace NHADAT.AdminCP
{
    public partial class Default : System.Web.UI.Page
    {
        protected string KeySessionLogin = "ADMINCP_LOGIN";

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (User.Identity.IsAuthenticated)
            {
                FormsAuthentication.SignOut();
                Session.Abandon();
                Session.Clear();
            }
            FormsAuthentication.RedirectToLoginPage();
        }
    }
}